﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FormDangKy.ascx.cs" Inherits="Module_FormDangKy" %>
<table id="tblDangKy" cellpadding=5px>
    <tr>
        <td id="tdHeaderDK">
            Đăng ký thành viên
        </td>
    </tr>
    <tr>
        <td>
            
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            
            <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
            
        </td>
    </tr>
    <tr>
        <td>
            <table id="tblFormDK">
                <tr>
                    <td colspan=2 style="color:Red">
                        Thông tin đăng nhập
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên đăng nhập:
                    </td>
                    <td>
                    
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtUserName" ErrorMessage="Tên đăng nhập trống" 
                            ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    
                    </td>
                </tr>
                <tr>
                    <td>
                        Password
                    </td>
                    <td>
                    
                        <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                    
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtPass" ErrorMessage="Chưa nhập Password" ForeColor="Red" 
                            SetFocusOnError="True"></asp:RequiredFieldValidator>
                    
                    </td>
                </tr>
                <tr>
                    <td>
                        Nhập lại Password
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txtPass" ControlToValidate="txtConfirmPass" 
                            ErrorMessage="Password không giống nhau" ForeColor="Red" SetFocusOnError="True"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:
                    </td>
                    <td>                    
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Email không đúng" ForeColor="Red" 
                            SetFocusOnError="True" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên thẻ:
                    </td>
                    <td>
                        <asp:TextBox ID="txtCreditCard" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtCreditCard" ErrorMessage="Chưa nhập tên thẻ" 
                            ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số thẻ:
                    </td>
                    <td>
                        <asp:TextBox ID="txtCardNumber" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtCardNumber" ErrorMessage="Số thẻ không được để trống" 
                            ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan=2 style="color:Red">
                        Thông tin người dùng
                    </td>
                </tr>
                <tr>
                    <td>
                        Họ và tên:                    
                    </td>
                    <td>
                        <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Giới tính:
                    </td>
                    <td>
                        <asp:RadioButton ID="rdoMale" runat="server" GroupName="gGender" Text="Nam" 
                            Checked="True" />
                        <asp:RadioButton ID="rdoFemale" runat="server" GroupName="gGender" Text="Nữ" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Địa chỉ:
                    </td>
                    <td>
                    
                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                    
                    </td>
                </tr>
                <tr>
                    <td>
                        Ngày sinh:
                    </td>
                    <td>
                        <asp:TextBox ID="txtBirthDay" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số điện thoại:
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td id="tdbtnDK">
        
            <asp:Button ID="btnResg" runat="server" onclick="btnResg_Click" 
                Text="Đăng ký" />
&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="Cancel" 
                onclick="btnCancel_Click" />
        
        </td>
    </tr>
</table>